package org.jboss.seam.example.registration;


public enum Role {

	ADMIN(Permission.MODIFY_SETTINGS, Permission.ADD_USER, Permission.DELETE_USER, Permission.MODIFY_USER, Permission.VIEW_USERS),

	POWER_USER(Permission.MODIFY_SETTINGS,Permission.VIEW_USERS),

	USER,

	GUEST;

	private Permission[] permissions;

	private Role() {
		this(new Permission[0]);
	}

	private Role(Permission... permissions) {
		this.permissions = permissions;
	}


	public Permission[] getPermissions() {
		return permissions;
	}



}
